package cn.damai.search.mapper;

import cn.damai.model.Trade;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TradeMapper {

	Trade getTradeById(@Param(value = "id") Long id)throws Exception;

	List<Trade>	getTradeListByMap(Map<String, Object> param)throws Exception;

	Integer getTradeCountByMap(Map<String, Object> param)throws Exception;

	Integer insertTrade(Trade Trade)throws Exception;

	Integer updateTrade(Trade Trade)throws Exception;

//	Integer deleteTradeById(@Param(value = "id") Long id)throws Exception;
//
//	Integer batchDeleteTrade(Map<String,List<String>> params);

}
